#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File    :   celeryconfig.py
@Time    :   2024-07-24 12:47:18
@Author  :   chakcy 
@Email   :   947105045@qq.com
@description   :   celery配置文件
'''

from app.config import config

redis_config = config.redis

broker_url = f'redis://:{redis_config.password}@{redis_config.host}:{redis_config.port}/1'
result_backend = f'redis://:{redis_config.password}@{redis_config.host}:{redis_config.port}/2'